package com.oygo.hunter;

import android.content.Context;
import android.os.Build;

import com.oygo.hunter.bean.KeepWrapperBean;
import com.oygo.hunter.keep.KeepImpl;

public class KeepLiveWrapper {

    public static KeepWrapperBean initWrapperBean() {
        return KeepWrapperBean.createBuilder().setF1(true).setP1(true).build();
    }



    public static void start(Context context) {
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
            KeepLive.getInstance().start(context, KeepLiveWrapper.initWrapperBean(), new KeepImpl());
        }
    }
}



